
class Clothes {
    private String color;
    private char size;
    Clothes(String color, char size) {
        this.setColor(color);
        this.setSize(size);
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public char getSize() {
        return size;
    }

    public void setSize(char size) {
        this.size = size;
    }
}

public class TestBy20155212 {
    public static void main(String[] args) {
        Clothes[] c1 = {new Clothes("red", 'L'), new Clothes("blue", 'M')};
        Clothes[] c2 = new Clothes[c1.length];
        for(int i = 0; i < c1.length; i++) {
            c2[i] = c1[i];
        }
        c1[0].setColor("yellow");
        System.out.println(toString(c2[0]));
    }

    public static String toString(Clothes clothes) {
        return clothes.getColor();
    }
}